apply integration by parts